package com.candy.inner;

/**
 * @author donglin
 * @Title:
 * @类名: Test01
 * @date 2020/7/16
 */
public class Test01 {
    public static void main(String[] args) {
        //实例化学生对象
        Student stu0=new Student();
        System.out.println(stu0);
        System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~");
        System.out.println(new Student());
        //相当于是一个人打了三遍招呼
        stu0.sayHi();
        stu0.sayHi();
        stu0.sayHi();
        System.out.println("++++++++++++++++++++++++++++");
        //是三个人各打了一次招呼
        new Student().sayHi();
        new Student().sayHi();
        new Student().sayHi();









    }
}
